package mtt.us.client;

import hmvc4gwt.client.event.HmvcEvent;


import mtt.us.client.events.ShowIL8NViewEvent;
import mtt.us.client.events.ShowIndexViewEvent;
import mtt.us.client.il8n.IL8NController;
import mtt.us.client.il8n.IL8NModel;
import mtt.us.client.il8n.IL8NView;
import mtt.us.client.views.index.IndexController;
import mtt.us.client.views.index.IndexModel;
import mtt.us.client.views.index.IndexView;
import mtt.us.client.views.login.link.LoginLinkController;
import mtt.us.client.views.login.link.LoginLinkView;
import mtt.us.client.views.login.link.events.ShowLoginViewEvent;
import mtt.us.client.views.navigation.NavigationController;
import mtt.us.client.views.navigation.NavigationView;
import mtt.us.client.views.navigation.events.ShowNaviViewEvent;
import mtt.us.hmvcFramework.client.modul.ModulController;

public class AppController extends ModulController {
	/**
	 * initialisiert die Anwendung
	 */
	public final void doInitImpl() {
		
		/*
		 * Navigation anzeigen
		 */
		addChildTriad(new NavigationView(), new NavigationController());
		fireEvent(new ShowNaviViewEvent(), false, false, true);
		
		/*
		 * Language-Links anzeigen
		 */
		addChildTriad(new IL8NModel(), new IL8NView(), new IL8NController());
		fireEvent(new ShowIL8NViewEvent(), false, false, true);
		
		/*
		 * Login-Link anzeigen
		 */
		addChildTriad(new LoginLinkView(), new LoginLinkController());
		fireEvent(new ShowLoginViewEvent(), false, false, true);
		
		/*
		 * Index-Seite anzeigen
		 */
		addChildTriad(new IndexModel(), new IndexView(), new IndexController());
		fireEvent(new ShowIndexViewEvent(), false, false, true);
		
	}

	public void handleEventImpl(HmvcEvent event) {
		
	}
}
